In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713).
authormartin rudalics <rudalics@gmx.at>
Sun, 17 Jun 2012 10:43:50 +0000 (12:43 +0200)
committermartin rudalics <rudalics@gmx.at>
Sun, 17 Jun 2012 10:43:50 +0000 (12:43 +0200)
* window.el (special-display-p): Signal an error if BUFFER-NAME
is not a string (Bug#11713).

lisp/ChangeLog
lisp/window.el

index 0094ca217cc869a9906da8211300bf5cd658fa99..c3cc0a3dda4fcae79db9e070bb24a5c3d858bccc 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-17  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (special-display-p): Signal an error if BUFFER-NAME
+       is not a string (Bug#11713).
+
 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        * progmodes/python.el (python-info-beginning-of-backslash):
index d9dd7b63e271dbf326b94bd7377d0de3d76755d8..62cd226daec31a3ab207cd26e3f904e614196511 100644 (file)
@@ -4192,7 +4192,8 @@ or matches BUFFER-NAME, the return value is the cdr of that
 entry."
   (let (tmp)
     (cond
-     ((not (stringp buffer-name)))
+     ((not (stringp buffer-name))
+      (error "Invalid buffer name %s" buffer-name))
      ((member buffer-name special-display-buffer-names)
       t)
      ((setq tmp (assoc buffer-name special-display-buffer-names))